<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/common/common.jsp"%>
<%@ include file="/WEB-INF/views/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<base href="<%=basePath%>" />
		<link rel="stylesheet" type="text/css" href="/resources/css/detail.css" />
	</head>
	
	<body>
		<div class="easyui-layout" data-options="fit:true">
			<div data-options="region:'center',border:false" style="overflow-x:hidden">
				<div class="contain">
				    <!--二层：start-->
				    <div class="info">
						<!--基础内容：start-->
						<div class="info_title">商户信息</div>     
						<div class="infoa">
							<input type="hidden" name="resourceId" id="resourceId" value="${resource.resourceId}"/>
							<input type="hidden" name="shopId" id="shopId" value="${resource.shopId}"/>
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="10%"><span>*</span>所属频道：</td>
									<td width="10%">
										<input type="hidden" id="channelId_hidden" value="${channel.channelId}"/>
										<input type="text" class="easyui-combobox" style="width: 100% ; height: 100% ;" name="channel" id="channel"/>
									</td>
									<td width="10%"><span>*</span>所属行业：</td>
									<td width="10%">
										<div align="right">
											<input type="hidden" id="industryId_hidden" value="${industry.industryId}"/>
											<input type="text" class="easyui-combobox" style="width: 100% ; height: 25px;" name="industry" id="industry"/>
										</div>
									</td>
									<td width="5%"></td>
									<td width="10%"><span>*</span>服务项目：</td>
						            <td width="10%">
										<input type="hidden" id="serviceItemId_hidden" value="${serviceItem.serviceItemId}"/>
										<input type="text" class="easyui-combobox" style="width: 100% ; height: 25px;" name="serviceItem" id="serviceItem"/>
									</td>
				            		<td width="10%">营业时间：</td>
				                	<td width="10%">
										<input type="text" id="openTime" class="easyui-validatebox" style="width: 100% ; height: 25px;" value="${resource.openTime}"/>
						    		</td>
									<td width="5%"></td>
				          		</tr>
				          		<tr height="5px"></tr>
				          		<tr>
				            		<td><span>*</span>省/直辖市：</td>
				            		<td>
						               <input type="hidden" id="provinceId_hidden" value="${provinces.id}"/>
						               <input type="text" class="easyui-combobox" style="width: 100% ; height: 25px;" name="province" id="province" readonly="readonly"/>
						            </td>
						            <td><span>*</span>市：</td>
						            <td><div align="right">
						               <input type="hidden" id="cityId_hidden" value="${cities.id}"/>
						               <input type="text" class="easyui-combobox" style="width: 100% ; height: 25px;" name="city" id="city"/>
						            </div></td>
						            <td width="5%"></td>
						            <td><span>*</span>区/县：</td>
						            <td>
						               <input type="hidden" id="districtId_hidden" value="${areas.id}"/>
						               <input type="text" class="easyui-combobox" style="width: 100% ; height: 25px;" name="district" id="district"/>
						            </td>
						            <td>采集员编号：</td>
						            <td>
						               <input type="text" id="collectorId_hidden" class="easyui-validatebox" style="width: 100% ; height: 25px;" value="${resource.collectorId}"/>
						            </td>
						            <td width="5%"></td>
				          		</tr>
								<tr height="5px"></tr>
								<tr>
									<td><span>*</span>名称：</td>
				            		<td colspan="3">
							   			<input type="text" id="resourceName" class="easyui-validatebox" style="width:100% ; height: 25px;" value="${resource.name}" data-options="required:true"/>
									</td>  
								    <td width="5%"></td>
									<td>别名/简称：</td>
						            <td>
									   <input type="text" id="shortName" class="easyui-validatebox" style="width: 100px ; height: 25px;" value="${resource.shortName}"/>
									</td>            
									<td><span>*</span>联系电话：</td>
						            <td>
									   <input type="text" id="telno" class="easyui-validatebox" style="width: 100% ; height: 25px;" value="${resource.telno}" data-options="required:true"/>
									</td>
									<td width="5%"></td>          
								</tr>
								<tr height="5px"></tr>
				          		<tr>
						            <td>详细地址：</td>
						            <td colspan="3">
									   <input type="text" id="address" class="easyui-validatebox" style="width: 100% ; height: 25px;" value="${resource.address}"/>
									</td>	           
								    <td width="5%"></td>
									<td>分店名：</td>
						            <td colspan="3">
									   <input type="text" id="branchName" class="easyui-validatebox" style="width: 100% ; height: 25px;" value="${resource.branchName}"/>
									</td>
									<td width="5%"></td>    
								</tr>
							</table>
						</div>
					<!--基础内容：end-->
					</div>
					<div class="info">
						<!--详细内容：start-->
						<div class="info_title">商户详细信息</div>      
						<div class="infoa">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="10%">推荐点：</td>
									<td width="10%">
										<select id="recommendation" style="width: 100px ; height: 25px;">
											<option value="1星" <c:if test="${resource.recommendation == '1星'}">selected="selected"</c:if>>1星</option>
											<option value="2星" <c:if test="${resource.recommendation == '2星'}">selected="selected"</c:if>>2星</option>
											<option value="3星" <c:if test="${resource.recommendation == '3星'}">selected="selected"</c:if>>3星</option>
											<option value="4星" <c:if test="${resource.recommendation == '4星'}">selected="selected"</c:if>>4星</option>
											<option value="5星" <c:if test="${resource.recommendation == '5星'}">selected="selected"</c:if>>5星</option>
										</select>
									</td> 
									<td width="10%">面积m2：</td>
									<td width="10%">
										<div align="right">
											<select id="area" style="width: 100px; height: 25px;">
												<option value="100以下" <c:if test="${resource.area == '100以下'}">selected="selected"</c:if>>100以下</option>
												<option value="100-300" <c:if test="${resource.area == '100-300'}">selected="selected"</c:if>>100-300</option>
												<option value="300以上" <c:if test="${resource.area == '300以上'}">selected="selected"</c:if>>300以上</option>
											</select>
										</div>
									</td>
									<td width="5%"></td> 
									<td width="10%">经度X：</td>
					                <td width="10%">
								   	   <input type="text" id="x" class="easyui-validatebox" style="width: 100px; height: 25px;" value="${resource.x}"/>
									</td>               
									<td width="10%">纬度Y：</td>
					                <td width="10%">
					                	<div align="right">
											<input type="text" id="y" class="easyui-validatebox" style="width: 100px; height: 25px;" value="${resource.y}"/>
										</div>
									</td> 
									<td width="5%"></td>             
								</tr>
								<tr height="5px"></tr>
								<tr>
					                <td>停车位：</td>
					                <td>
									    <select id="parking" style="width: 100px; height: 25px;">
											<option value="有" <c:if test="${resource.parking == '有'}">selected="selected"</c:if>>有</option>
											<option value="无" <c:if test="${resource.parking == '无'}">selected="selected"</c:if>>无</option>
										</select>
									</td>
					                <td>消费档次：</td>
					                <td>
					                	<div align="right">
										    <select id="cost" style="width: 100px; height: 25px;">
												<option value="低档" <c:if test="${resource.cost == '低档'}">selected="selected"</c:if>>低档</option>
												<option value="中档" <c:if test="${resource.cost == '中档'}">selected="selected"</c:if>>中档</option>
												<option value="高档" <c:if test="${resource.cost == '高档'}">selected="selected"</c:if>>高档</option>
												<option value="超豪华" <c:if test="${resource.cost == '超豪华'}">selected="selected"</c:if>>超豪华</option>
											</select>
										</div>
									</td>
									<td width="5%"></td>	
					                <td>是否刷卡：</td>
					                <td>
					                    <select id="chargeType" style="width: 100px; height: 25px;">
											<option value="是" <c:if test="${resource.chargeType == '是'}">selected="selected"</c:if>>是</option>
											<option value="否" <c:if test="${resource.chargeType == '否'}">selected="selected"</c:if>>否</option>
										</select>
					                </td>
					                <td width="100">有无包间：</td>
					                <td>
					                	<div align="right">
										    <select id="privateRoom" style="width: 100px; height: 25px;">
												<option value="有" <c:if test="${resource.privateRoom == '有'}">selected="selected"</c:if>>有</option>
												<option value="无" <c:if test="${resource.privateRoom == '无'}">selected="selected"</c:if>>无</option>
											</select>
										</div>
									</td>
									<td width="5%"></td>
								</tr>
								<tr height="5px"></tr>
								<tr>
					                <td width="100px;">大包间容量：</td>
									<td>
									   <input type="text" id="maxCapacity" class="easyui-validatebox" style="width: 100px; height: 25px;" value="${resource.maxCapacity}"/>
									</td>               
									<td width="100px;">小包间容量：</td>
									<td>
										<div align="right">
											<input type="text" id="minCapacity" class="easyui-validatebox" style="width: 100px; height: 25px;" value="${resource.minCapacity}"/>
										</div>
									</td>
									<td width="5%"></td> 
					                <td>邮编：</td>
					                <td>
									   <input type="text" id="zipcode" class="easyui-validatebox" style="width: 100px; height: 25px;" value="${resource.zipcode}"/>
									</td>                
									<td width="100">是否预定：</td>
					                <td>
					                	<div align="right">
										    <select id="reservation" style="width: 100px; height: 25px;">
												<option value="是" <c:if test="${resource.reservation == '是'}">selected="selected"</c:if>>是</option>
												<option value="否" <c:if test="${resource.reservation == '否'}">selected="selected"</c:if>>否</option>
											</select>
										</div>
									</td>
									<td width="5%"></td>                
								</tr>
								<tr height="5px"></tr>
								<tr>
									<td>客容量：</td>
					                <td>
									   <input type="text" id="capacity" class="easyui-validatebox" style="width: 100px; height: 25px;" value="${resource.capacity}"/>
									</td>
									<td width="100">是否外送：</td>
									<td>
										<div align="right">
											<input type="text" id="deliveryService" class="easyui-validatebox" style="width: 100px; height: 25px;" value="${resource.deliveryService}"/>
										</div>
									</td>
									<td width="5%"></td> 
									<td>信息维护：</td>
					                <td>
									   <input type="text" id="infoMaintain" class="easyui-validatebox" style="width: 100px; height: 25px;" value="${resource.infoMaintain}"/>
									</td>
									<td width="100">手机支付：</td>
					                <td>
					                	<div align="right">
										    <select id="mobilePayment" style="width: 100px; height: 25px;">
												<option value="是" <c:if test="${resource.mobilePayment == '是'}">selected="selected"</c:if>>是</option>
												<option value="否" <c:if test="${resource.mobilePayment == '否'}">selected="selected"</c:if>>否</option>
											</select>
										</div>
									</td>
									<td width="5%"></td> 
								</tr>
								<tr height="5px"></tr>
								<tr>
								    <td>官方站点：</td>
					                <td colspan="3">
										<input type="text" id="officialSite" class="easyui-validatebox" style="width: 100% ; height: 25px;" value="${resource.officialSite}"/>
									</td>
									<td width="5%"></td>
									<td>商店氛围：</td>
					                <td colspan="3">
					                	<select id="feature" class="easyui-combobox" multiple="true" style="width: 433px ; height: 25px;" panelHeight="auto" editable="false">
				                			<option value="朋友聚餐" 
			                			        <c:forEach items="${features}" var="features">
			                		            <c:if test="${features == '朋友聚餐'}">selected="selected"</c:if>
			                		            </c:forEach>>朋友聚餐</option>
					                		<option value="家庭聚餐" 
				                		        <c:forEach items="${features}" var="features">
			                		            <c:if test="${features == '家庭聚餐'}">selected="selected"</c:if>
			                		            </c:forEach>>家庭聚餐</option>
				                		    <option value="情侣约会" 
				                		        <c:forEach items="${features}" var="features">
			                		            <c:if test="${features == '情侣约会'}">selected="selected"</c:if>
			                		            </c:forEach>>情侣约会</option>
				                		    <option value="商务宴请" 
			                			        <c:forEach items="${features}" var="features">
			                		            <c:if test="${features == '商务宴请'}">selected="selected"</c:if>
			                		            </c:forEach>>商务宴请</option>
					                		<option value="休闲小憩" 
				                		        <c:forEach items="${features}" var="features">
			                		            <c:if test="${features == '休闲小憩'}">selected="selected"</c:if>
			                		            </c:forEach>>休闲小憩</option>
				                		    <option value="随便吃吃"
				                		        <c:forEach items="${features}" var="features">
			                		            <c:if test="${features == '随便吃吃'}">selected="selected"</c:if>
			                		            </c:forEach>>随便吃吃</option>
					                	</select>
					                </td>
									<td width="5%"></td>
								</tr>
								<tr height="5px"></tr>
								<tr>
									<td >标签：</td>
				                    <td colspan="3">
				                        <textarea name="tag" cols="45" rows="5" class="cekbig" id="tag" style="width: 100%;">${resource.tag}</textarea>
			                        </td>
				                    <td width="5%"></td>
				                    <td>招牌菜：</td>
				                    <td colspan="3">
				                        <textarea name="textarea" cols="45" rows="5" class="cekbig" id="specialOffer" style="width: 100%;">${resource.specialOffer}</textarea>
			                        </td>
				                    <td width="5%"></td>
								</tr>
								<tr height="5px"></tr>
								<tr>
				                    <td>标志性建筑：</td>
				                    <td colspan="3">
				                        <textarea name="textarea" cols="45" rows="5" class="cekbig" id="landmark" style="width: 100%;">${resource.landmark}</textarea>
			                        </td>
				                    <td width="5%"></td>
				                    <td >商户简介：</td>
				                    <td colspan="3">
				                        <textarea name="textarea" cols="45" rows="5" class="cekbig" id="introduction" style="width: 100%;">${resource.introduction}</textarea>
			                        </td>
				                    <td width="5%"></td>
								</tr>
								<tr height="5px"></tr>
				                <tr>
				                    <td >商圈：</td>
				                    <td colspan="3">
				                        <textarea name="textarea" cols="45" rows="5" class="cekbig" id="region" style="width: 100%;">${resource.region}</textarea>
			                        </td>
				                    <td width="5%"></td>
				                    <td >位置描述：</td>
				                    <td colspan="3">
				                        <textarea name="textarea" cols="45" rows="5" class="cekbig" id="route" style="width: 100%;">${resource.route}</textarea>
			                        </td>
				                    <td width="5%"></td>
								</tr>
								<tr height="5px"></tr>
								<tr>
									<td >公交路线：</td>
									<td colspan="3">
		                 				<textarea name="textarea" cols="45" rows="5" class="cekbig" id="busRoute" style="width: 100%;">${resource.busRoute}</textarea>
									</td>
								</tr>
							</table>
				        </div>
			        </div>
			        <div class="info">
				        <div class="info_title">历史审核记录</div>
				        <div class="infoa">
					        <table style="width: 98%; border-color: #aaa;" border="1" cellpadding="0" cellspacing="0">
							    <tr>
									<td style="text-align: center; border-color: #aaa">审核时间</td>
									<td style="text-align: center; border-color: #aaa">审核人</td>
									<td style="text-align: center; border-color: #aaa">审核意见</td>
								</tr>
								<c:choose>
									<c:when test="${messageList == null || messageList.size() == 0}">
										<td style="color: red; text-align: center; border-color: #aaa" colspan="3">
											暂无历史审核记录
										</td>
									</c:when>
									<c:otherwise>
										<c:forEach items="${messageList}" var="message" varStatus="i">
											<tr>
												<td style="text-align: center; border-color: #aaa" width="20%">
													<fmt:formatDate value="${message.add_date}" pattern="yyyy-MM-dd HH:mm:ss"/>
												</td>
												<td style="text-align: center; border-color: #aaa" width="20%">${message.addMan}</td>
												<td style="text-align: center; border-color: #aaa" width="60%">${message.message_content}</td>
											</tr>
										</c:forEach>
									</c:otherwise>
								</c:choose>
							</table>
						</div>
					</div>
			    </div>
			</div>
			
			<!--start：button区域-->
			<div region="south" style="height:36px;overflow:hidden;" border="false">
				<div class="WinBtnBody pdt5">
					<table align="center" border="0" cellpadding="0" cellspacing="0">
						<tr>  
							<td>
								<a href="javascript:void(0)" onclick="javascript:Detail.closeTab();" class="easyui-linkbutton" plain="true" iconCls="remove">关闭</a>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
		
		<!-- ==================页面操作JS================ -->
		<script type="text/javascript" src="/resources/js/pc/resource/detail.js"></script>
	</body>
</html>